package com.xk.meeting.service;

import com.xk.meeting.dao.AnnounceDao;
import com.xk.meeting.dao.AnnounceDaoImpl;
import com.xk.meeting.entity.Announce;

import java.util.List;

public class AnnounceServiceImpl implements AnnounceService{
    private AnnounceDao announceDao = new AnnounceDaoImpl();
    @Override
    public int addAnnounce(String addtext) {
        return announceDao.addAnnounce(addtext);
    }

    @Override
    public List<Announce> getAnnounceList() {
        return announceDao.getAnnounceList();
    }

    @Override
    public int deleteAnnounce(int id) {
        return announceDao.deleteAnnounce(id);
    }

    @Override
    public Announce queryAnnounce(int id) {
        return announceDao.queryAnnounce(id);
    }

    @Override
    public int updateAnnounce(int id, String content) {
        return announceDao.updateAnnounce(id,content);
    }
}
